]> dgit.raspbian.org Git - gnome-shell.git/commit
tests: Use gjs_context_eval_file to evaluate test scripts
authorEvan Welsh <contact@evanwelsh.com>
Mon, 10 Jul 2023 05:24:48 +0000 (22:24 -0700)
committerEvan Welsh <contact@evanwelsh.com>
Sat, 15 Jul 2023 02:35:56 +0000 (02:35 +0000)
commitb798efcc1de9bf4e0b21844a526df21f4233643d
tree0dceca524cff135f03e0fb4ae2724c8f4f2b366c
parent011ac6f83ce8cb82513ea2f44131c22e7ef65632
tests: Use gjs_context_eval_file to evaluate test scripts

GJS provides utilities to run scripts given a filename, using those
utilities we can remove most of the logic implementing file loading.

Additionally the REPL logic does not make much sense for a test
runner and is unused, so remove it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2822>
src/run-js-test.c